package com.aiit.ssm.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aiit.ssm.dao.DepartmentDao;
import com.aiit.ssm.model.Department;


@Service
public class DepartmentService {
	
	@Autowired
	DepartmentDao dDao;
	
	//保存部门
	public void saveDept(Department dept) {
		dDao.saveDept(dept);
	}
	
	//查询部门
	public List<Department> findAllDepts(){
		 return dDao.findAllDepts();
	}
	public List<Map<String, Object>> findEmpNum() {
		return dDao.findNum();
	}
}
